<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Config PreEdit</title>
        <%include("../inc/editCss.html"){};%>
	</head>
	<body class="no-skin">
		<div class="container-fluid">
			<div class="row">
			  <div class="breadcrumbs">
				<ul class="breadcrumb">
					<li><i class="ace-icon fa fa-home home-icon"></i><a href="../index.jspx" target="_top">首页</a></li>
					<li><a href="list.jspx">站点配置</a></li>
					<li class="active">修改</li>
				</ul>
				  <!-- /.breadcrumb -->
			  </div>
			  <!-- /.breadcrumbs -->
			</div>
			<!-- /.row -->
			<div class="row">
				<div class="page-content">
					<div class="page-header">
						<h1>站点配置修改</h1>
					</div>
					<div class="row">
						<div class="col-xd-12">
						    <form action="edit.jspx" method="post" class="form-horizontal" role="form" id="form-data">
						    	<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 网站名称  </label>
									<div class="col-sm-10">
										<input type="hidden" name="id" value="${config.id!0}">
										<input type="text" id="webname" name="webname" placeholder="网站名称" class="col-sm-8" value="${config.webname!''}" />
									</div>
								</div>
								<div class="space-4"></div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 当前主题  </label>
									<div class="col-sm-2">
										<input type="text" id="currentTheme" name="currentTheme" placeholder="当前主题" class="form-control" value="${config.currentTheme!'default'}"/>
									</div>
									<label class="col-sm-2 control-label no-padding-right"> 首页地址  </label>
									<div class="col-sm-2">
										<input type="text" id="index" name="index" placeholder="首页地址" class="form-control" value="${config.index!'index'}"/>
									</div>
									<label class="col-sm-2 control-label no-padding-right"> 有效  </label>
									<div class="col-sm-2">
										<label><input type="radio" name="isCurrent" value="1" checked> 有效</label>
										<label><input type="radio" name="isCurrent" value="0"> 无效</label>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 关键词 </label>
									<div class="col-sm-10">
										<textarea name="keywords" class="form-control">${config.keywords!}</textarea>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 网站版权 </label>
									<div class="col-sm-9">
										<textarea id="webcopyright_container" name="webCopyright">${config.webCopyright!''}</textarea>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 网站介绍 </label>
									<div class="col-sm-9">
										<textarea id="description_container" name="description" class="form-control">${config.description!''}</textarea>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">添加时间</label>
									<div class="col-sm-3">
										<input type="text" name="addtime" value="${config.addtime!date(),"yyyy-MM-dd HH:mm:ss"}">
									</div>
									
									<label class="col-sm-2 control-label no-padding-right">修改时间</label>
									<div class="col-sm-3">
										<input type="text" name="edittime" value="${date(),"yyyy-MM-dd HH:mm:ss"}">
									</div>
								</div>
								
								<div class="clearfix form-actions">
									<div class="col-sm-offset-2 col-sm-4">
										<button type="reset" class="btn" id="reset">
											<i class="ace-icon fa fa-undo bigger-110"></i>
											重置
										</button>
										&nbsp;&nbsp;
										<button type="submit" class="btn btn-info">
											<i class="ace-icon fa fa-check bigger-110"></i>
											提交
										</button>
									</div>
								</div>
						    </form>
					    </div>
					</div>
					<!-- /.row -->
				</div>
				<!-- /.page-content -->
			</div>
		</div>
		<%include("../inc/editJs.html"){};%>
		<script>
			$(document).ready(function(){
                root.manage.config.edit.init({});
			});
		</script>
	</body>
</html>